<template>
    <!-- 推荐专区 -->
    <view class="recommend-wrap">
        <!-- 推荐标题开始 -->
        <view class="title-wrap">
            <text>推荐专区</text>
        </view>
        <!-- 推荐标题结束 -->

        <view class="content-wrap">
            <TridentFreshGoodsItem v-for="(item, index) in recommends" :key="index" :goods="item"/>
        </view>
    </view>
</template>

<script setup lang="ts">
defineProps<{ recommends: any }>()
</script>

<style lang="scss">
.recommend-wrap {
    padding: 10rpx;
    .title-wrap {
        height: 80rpx;
        line-height: 80rpx;
        background-color: #008000;
        color: #FFF;
        font-size: 32rpx;
        padding-left: 20rpx;
    }

    .content-wrap {
        display: flex;
        flex-wrap: wrap;
    }
}
</style>
